<!--<!DOCTYPE html>-->
<!--<html lang="en">-->
<!--<head>-->
<!--    <meta charset="UTF-8">-->
<!--    <title>button</title>-->
<!--</head>-->
<!--<style>-->
<!--  .button{-->
<!--    background-color: #4CAF50;-->
<!--    color: white;-->
<!--    font-family:myfirst;-->
<!--    padding: 15px 32px;-->
<!--    margin: 15px;-->
<!--    font-size: 10px;-->
<!--    text-align: center;-->
<!--    cursor: pointer;-->
<!--    border-radius: 50%;-->
<!--    opacity: 0.5;-->
<!--  }-->
<!--  @font-face myfirst{-->
<!--    font-family: myfirst;-->
<!--    src: url("../font/masego.otf");-->
<!--  }-->
<!--</style>-->
<!--<body>-->
<!--<button class="button">提交</button>-->
<!--</body>-->
<!--</html>-->
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>菜鸟教程(runoob.com)</title>
  <style>
    .button {
      display: inline-block;
      border-radius: 4px;
      background-color: #f4511e;
      border: none;
      color: #FFFFFF;
      text-align: center;
      font-size: 28px;
      padding: 20px;
      width: 200px;
      transition: all 0.5s;
      cursor: pointer;
      margin: 5px;
    }

    .button span {
      cursor: pointer;
      display: inline-block;
      position: relative;
      transition: 0.5s;
    }

    .button span:after {
      content: '»';
      position: absolute;
      opacity: 0;
      top: 0;
      right: -20px;
      transition: 0.5s;
    }

    .button:hover span {
      padding-right: 25px;
    }

    .button:hover span:after {
      opacity: 1;
      right: 0;
    }
  </style>
</head>
<body>

<h2>按钮动画</h2>

<button class="button" style="vertical-align:middle"><span>Hover </span></button>

</body>
</html>
